package org.jash.shop2212;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class CartEntity {
    @SerializedName("errorCode")
    private Integer errorCode;
    @SerializedName("errorMessage")
    private String errorMessage;
    @SerializedName("data")
    private List<DataDTO> data;

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        @SerializedName("id")
        private Integer id;
        @SerializedName("car_num")
        private Integer carNum;
        @SerializedName("goods_id")
        private Integer goodsId;
        @SerializedName("username")
        private String username;
        @SerializedName("goods_desc")
        private String goodsDesc;
        @SerializedName("goods_price")
        private Integer goodsPrice;
        @SerializedName("goods_icon")
        private String goodsIcon;
        private boolean checked;

        public boolean isChecked() {
            return checked;
        }

        public void setChecked(boolean checked) {
            this.checked = checked;
        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public Integer getCarNum() {
            return carNum;
        }

        public void setCarNum(Integer carNum) {
            this.carNum = carNum;
        }

        public Integer getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(Integer goodsId) {
            this.goodsId = goodsId;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getGoodsDesc() {
            return goodsDesc;
        }

        public void setGoodsDesc(String goodsDesc) {
            this.goodsDesc = goodsDesc;
        }

        public Integer getGoodsPrice() {
            return goodsPrice;
        }

        public void setGoodsPrice(Integer goodsPrice) {
            this.goodsPrice = goodsPrice;
        }

        public String getGoodsIcon() {
            return goodsIcon;
        }

        public void setGoodsIcon(String goodsIcon) {
            this.goodsIcon = goodsIcon;
        }
    }
}
